package com.cragon.services;

import org.springframework.context.Lifecycle;
import org.springframework.stereotype.Component;

/**
 * @Description: 容器初始化后回调
 * @Author: ZHOUHAILONG
 * @Date: 2021年02月25日 18:01
 */
@Component
public class Life implements Lifecycle {
	@Override
	public void start() {
		System.out.println("Life starts");
	}

	@Override
	public void stop() {
		System.out.println("Life stops");
	}

	@Override
	public boolean isRunning() {
		return false;
	}
}
